﻿using Equipment.Infrastructure.Interfaces;
using Equipment.Errorcode;

namespace Equipment.API.Application.Service.OutgoinginspectionService
{
    public class InspectorsService
    {
        private readonly IInspectorsRepository _inspectorsRepository;

        public InspectorsService(IInspectorsRepository inspectorsRepository)
        {
            _inspectorsRepository = inspectorsRepository;
        }
        /// <summary>
        /// 检验人信息显示
        /// </summary>
        /// <returns></returns>
        public async Task<ApiResult> GetInspectorsList()
        {
            var inspectors = await _inspectorsRepository.GetAllAsync();

            return ApiResult.Ok(inspectors,"检验人信息显示成功！");
        }
    }
}
